package hz;

import java.util.Date;
import java.util.List;

/**
 * Created by hz on 2016/12/30.
 */
public class ChangjingBean {
    private int id;
    private String name;
    private String warnname;
    private List<RuleBean> rule;
    private String warnemail;//告警邮箱
    //private String onoff;// 是否启用
    private String describe;//场景描述
    private Date mktime; //创建时间
    private String silencestart;  //静默开始时间
    private String silencestop;//静默结束时间
    private String level;//告警等级
    private String every;//告警每隔  分钟
    private int userid;//用户i
    private String ruleid;//存储为String字符串
    private String sessionid; //spark id
    private String leixing;


    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getWarnname() {
        return warnname;
    }

    public void setWarnname(String warnname) {
        this.warnname = warnname;
    }

    public List<RuleBean> getRule() {
        return rule;
    }

    public void setRule(List<RuleBean> rule) {
        this.rule = rule;
    }

    public String getWarnemail() {
        return warnemail;
    }

    public void setWarnemail(String warnemail) {
        this.warnemail = warnemail;
    }

   /* public String getOnoff() {
        return onoff;
    }

    public void setOnoff(String onoff) {
        this.onoff = onoff;
    }*/

    public String getLeixing() {
        return leixing;
    }

    public void setLeixing(String leixing) {
        this.leixing = leixing;
    }

    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }

    public Date getMktime() {
        return mktime;
    }

    public void setMktime(Date mktime) {
        this.mktime = mktime;
    }

    public String getSilencestart() {
        return silencestart;
    }

    public void setSilencestart(String silencestart) {
        this.silencestart = silencestart;
    }

    public String getSilencestop() {
        return silencestop;
    }

    public void setSilencestop(String silencestop) {
        this.silencestop = silencestop;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    public String getEvery() {
        return every;
    }

    public void setEvery(String every) {
        this.every = every;
    }

    public int getUserid() {
        return userid;
    }

    public void setUserid(int userid) {
        this.userid = userid;
    }

    public String getRuleid() {
        return ruleid;
    }

    public void setRuleid(String ruleid) {
        this.ruleid = ruleid;
    }

    public String getSessionid() {
        return sessionid;
    }

    public void setSessionid(String sessionid) {
        this.sessionid = sessionid;
    }

    @Override
    public String toString() {
        return "ChangjingBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", warnname='" + warnname + '\'' +
                ", rule=" + rule +
                ", warnemail='" + warnemail + '\'' +
                ", describe='" + describe + '\'' +
                ", mktime=" + mktime +
                ", silencestart='" + silencestart + '\'' +
                ", silencestop='" + silencestop + '\'' +
                ", level='" + level + '\'' +
                ", every=" + every +
                ", userid=" + userid +
                ", ruleid='" + ruleid + '\'' +
                ", sessionid='" + sessionid + '\'' +
                '}';
    }
}
